<?php

declare(strict_types=1);

namespace App\Model\App;

use App\Model\Model;

/**
 * @property int $id 
 * @property string $no 订单号码
 * @property string $url 回调地址
 * @property string $request_type 请求类型
 * @property array $request_info 请求详情
 * @property array $response_info 响应内容
 * @property int $status 请求状态|["未请求","请求成功","请求失败"]
 * @property int $notify_num 请求回调次数
 * @property string $scene 场景
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class AppNotify extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'app_notify';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'no', 'url', 'request_type', 'request_info', 'response_info', 'status', 'notify_num', 'scene', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'id' => 'integer',
        'status' => 'integer',
        'notify_num' => 'integer',
        'request_info' => 'array',
        'response_info' => 'array',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
    ];
}
